﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Veripark.Data;

namespace PlanckTime.Entity
{
    public class TaskData : TrackableEntity
    {
        public static readonly Field TaskIdField = new Field("TaskId");

        public Guid TaskId { get; set; }
        public string Title { get; set; }
        public Guid AttachmentId { get; set; }

        public static TaskData[] GetTaskDataByTaskId(Guid taskId)
        {
            return BasicEntityCollection.Restore<TaskData>(TaskData.TaskIdField == taskId);
        }
    }
}
